package com.ruoyi.business.goods.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.business.goods.service.JbCommodityOfflinePriceService;
import org.springframework.stereotype.Service;
import com.ruoyi.business.base.JoBaseServiceImpl;
import com.ruoyi.business.goods.mapper.JbCommodityOfflinePriceMapper;
import com.ruoyi.business.goods.domain.JbCommodityOfflinePrice;

import java.util.List;

/**
 * 商品线下价格Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-11
 */
@Service
public class JbCommodityOfflinePriceServiceImpl
        extends JoBaseServiceImpl<JbCommodityOfflinePriceMapper, JbCommodityOfflinePrice>
        implements JbCommodityOfflinePriceService
{

    @Override
    public List<JbCommodityOfflinePrice> selectCommodityList(List<Long> ids)
    {
        LambdaQueryWrapper<JbCommodityOfflinePrice> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.in(JbCommodityOfflinePrice::getCommodityId, ids);
        return this.list(lambdaQueryWrapper);
    }
}
